package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 广告设置对象 advertising
 * 
 * @author ruoyi
 * @date 2024-10-23
 */
public class Advertising extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** UserID */
    @Excel(name = "UserID")
    private String userId;

    /** 广告名称 */
    @Excel(name = "广告名称")
    private String name;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String photo;

    /** 页面 */
    @Excel(name = "页面")
    private String ym;

    /** 排序值 */
    @Excel(name = "排序值")
    private Long pxz;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cjtime;

    /** 有效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date yxtime;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setYm(String ym) 
    {
        this.ym = ym;
    }

    public String getYm() 
    {
        return ym;
    }
    public void setPxz(Long pxz) 
    {
        this.pxz = pxz;
    }

    public Long getPxz() 
    {
        return pxz;
    }
    public void setCjtime(Date cjtime) 
    {
        this.cjtime = cjtime;
    }

    public Date getCjtime() 
    {
        return cjtime;
    }
    public void setYxtime(Date yxtime) 
    {
        this.yxtime = yxtime;
    }

    public Date getYxtime() 
    {
        return yxtime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("photo", getPhoto())
            .append("ym", getYm())
            .append("pxz", getPxz())
            .append("cjtime", getCjtime())
            .append("yxtime", getYxtime())
            .append("status", getStatus())
            .toString();
    }
}
